<?php

require 'vendor/autoload.php';

$search = new Search\SearchBaidu\SearchBaidu;
$results = $search->search('明天的天气情况');
foreach ($results as $res) {
    echo '【', $res->getTitle(), '】', PHP_EOL;
    echo '_________________________', PHP_EOL;
    echo $res->getContent(), PHP_EOL, PHP_EOL;
}

echo '*****************************', PHP_EOL;

$search = new Search\Search360\Search360;
$results = $search->search('明天的天气情况');
foreach ($results as $res) {
    echo '【', $res->getTitle(), '】', PHP_EOL;
    echo '_________________________', PHP_EOL;
    echo $res->getContent(), PHP_EOL, PHP_EOL;
}